package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @className: Lotto
 * @Description: TODO
 * @version: v1.８.0
 * @author: 汪菲阳
 * @date: 2025/8/26 17:37
 */
@Data
public class Lotto {
    //抽奖id
    private Integer lottoId;
    //活动名称
    private String actName;
    //活动时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date actStartTime;
    //活动时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date actEndTime;
    //参与用户
    private Integer dicActorId;
    //单次抽奖消耗积分
    @NotNull(message = "消费积分不能为空")
    @Min(value = 0,message = "消费积分不能小于0")
    @Digits(integer = 10,fraction = 0,message = "消费积分需要为整数")
    private Integer consumePoints;
    //活动背景
    private String actImg;
    //中奖名单
    private Integer dicWinningList;
    //中奖记录
    private Integer dicWinningLog;
    //活动规则
    private Integer dicActRule;
    //活动规则
    private String actRule;
    //活动状态
    private Integer dicLottoState;
}
